package com.xzuf.extend;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.table.DefaultTableModel;

import org.jdesktop.swingx.JXTable;

import com.xzuf.plugin.IModulePlugin;

/**
 * @author xzgf
 * @since 2008-7-12
 * @version 1.0
 */
public class ExcelPlugin implements IModulePlugin {
	

	/**
	 * {@inheritDoc}
	 */
	@Override
	public JPanel start() {
		JPanel panel = new JPanel();
		JXTable table = new JXTable();
		table.setRolloverEnabled(true);
		table.setRowHeight(40);
		table.setModel(new DefaultTableModel(3,4));
		panel.setLayout(new BorderLayout());
		panel.add(new JScrollPane(table),BorderLayout.CENTER);
		return panel;
	}
	
	@Override
	public int getCurrentOpState() {
		return 0;
	}

	@Override
	public void setCurrentOpState(int state) {
	}

}
